class mylist:
    list = [1, 2, 3, 4]

    def __getitem__(self, item):
        return self.list[item]


ml = mylist()
print(ml[1])
